# -*- coding: UTF-8 -*-
from server.model import Base
from sqlalchemy.sql.functions import now
from sqlalchemy import Column, BigInteger, String, DateTime, Boolean


class ExaFiles(Base):
    __tablename__ = 'exa_files'
    id = Column(BigInteger, primary_key=True, nullable=False, doc='')
    file_name = Column(String(191), doc='')
    file_md5 = Column(String(191), doc='')
    file_path = Column(String(191), doc='')
    chunk_total = Column(BigInteger, doc='')
    is_finish = Column(Boolean, doc='')
    created_at = Column(DateTime, default=now(), doc='')
    updated_at = Column(DateTime, default=now(), doc='')
    deleted_at = Column(DateTime, index=True, doc='')
